#include "engine.h"

namespace info_model
{
	engine_t::engine_t(): 
		base_object(OBJECT_ENGINE), set_speed_(0), current_speed_(0) {}

	void engine_t::set_speed(uint16_t value)
	{
		set_speed_ = value;
	}

	void engine_t::set_current_speed(uint16_t value)
	{
		current_speed_ = value;
	}
		
	uint16_t engine_t::selected_speed()
	{
		return set_speed_;
	}

	uint16_t engine_t::current_speed()
	{
		return current_speed_;
	}

} // end namespace info_model